#define   _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

void main() {

	int a = 0, b = 1, sum = 0;

	for (a = 1; a < 11; a++)
	{
		b = a * b;
		sum = sum + b;
	}
	printf("%d\n",sum);
}